import Vue from 'vue';
import Router from 'vue-router';
const _import = require('./_import_' + process.env.NODE_ENV);
// in development env not use Lazy Loading,because Lazy Loading large page will cause webpack hot update too slow.so only in production use Lazy Loading

Vue.use(Router);

/* layout */
import Layout from '../views/layout/Layout';

/**
 * icon : the icon show in the sidebar
 * hidden : if `hidden:true` will not show in the sidebar
 * redirect : if `redirect:noredirect` will no redirct in the levelbar
 * noDropdown : if `noDropdown:true` will has no submenu
 * meta : { role: ['admin'] }  will control the page role
 **/
export const constantRouterMap = [{
    path: '/login',
    component: _import('login/index'),
    hidden: true
  },
  {
    path: '/authredirect',
    component: _import('login/authredirect'),
    hidden: true
  },
  {
    path: '/404',
    component: _import('error/404'),
    hidden: true
  },
  {
    path: '/401',
    component: _import('error/401'),
    hidden: true
  },
  {
    path: '/',
    component: Layout,
    redirect: '/dashboard',
    name: '首页',
    hidden: true,
    meta: {
      title: 'dashboard'
    },
    children: [{
      path: 'dashboard',
      component: _import('dashboard/index'),
      meta: {
        title: 'dashboard'
      }
    }]
  },
  {
    path: '/introduction',
    component: Layout,
    redirect: '/introduction/index',
    icon: 'form',
    noDropdown: true,
    children: [{
      path: 'index',
      component: _import('introduction/index'),
      name: '简述'
    }]
  }
]

export default new Router({
  // mode: 'history', //后端支持可开
  scrollBehavior: () => ({
    y: 0
  }),
  routes: constantRouterMap
});

export const asyncRouterMap = [{
  path: '/creditSupermarket',
  icon: 'fa-users',
  component: Layout,
  name: '信贷超市',
  authority: 'creditSupermarket',
  meta: {
    title: 'creditSupermarket'
  },
  redirect: '/creditSupermarket',
  children: [{
    path: '/creditSupermarket',
    icon: 'fa-users',
    component: _import('synManager/creditSupermarket/index'),
    name: '信贷超市',
    authority: 'creditSupermarket',
    meta: {
      title: 'creditSupermarket'
    },
  }]
}, {
  path: '/custQueryDetail',
  component: Layout,
  name: '客户详情',
  icon: 'setting',
  authority: 'custQueryDetail',
  meta: {
    title: 'custQueryDetail'
  },
  redirect: '/custQueryDetail',
  children: [{
    path: '/custQueryDetail',
    component: _import('custQueryDetail/index'),
    name: '客户详情',
    icon: 'setting',
    authority: 'custQueryDetail',
    meta: {
      title: 'custQueryDetail'
    }
  }]
}, {
  path: '/customQuery',
  component: Layout,
  name: '客户查询',
  icon: 'setting',
  authority: 'customQuery',
  meta: {
    title: 'customQuery'
  },
  redirect: '/customQuery',
  children: [{
    path: '/customQuery',
    component: _import('customQuery/index'),
    name: '客户查询',
    icon: 'setting',
    authority: 'customQuery',
    meta: {
      title: 'customQuery'
    }
  }]
}, {
  path: '/trust',
  component: Layout,
  name: '信审管理',
  icon: 'setting',
  authority: 'trust',
  meta: {
    title: 'trust'
  },
  children: [{
    path: 'endApprDetails',
    icon: 'fa-user',
    component: _import('trust/endApproval/children/endApprDetails/index'),
    name: '终审详情 - Beta',
    authority: 'endApprDetails',
    meta: {
      title: 'endApprDetails'
    }
  }, {
    path: 'reviewApprDetails',
    icon: 'fa-user',
    component: _import('trust/reviewApproval/children/reviewApprDetails/index'),
    name: '复审详情 - Beta',
    authority: 'reviewApprDetails',
    meta: {
      title: 'reviewApprDetails'
    }
  }, {
    path: 'firstApprDetails',
    icon: 'fa-user',
    component: _import('trust/firstApproval/children/firstApprDetails/index'),
    name: '初审详情 - Beta',
    authority: 'firstApprDetails',
    meta: {
      title: 'firstApprDetails'
    }
  }, {
    path: 'firstApproval',
    icon: 'fa-user',
    component: _import('trust/firstApproval/index'),
    name: '初审 - Beta',
    authority: 'firstApproval',
    meta: {
      title: 'firstApproval'
    }
  }, {
    path: 'reviewApproval',
    icon: 'fa-user',
    component: _import('trust/reviewApproval/index'),
    name: '复审 - Beta',
    authority: 'reviewApproval',
    meta: {
      title: 'reviewApproval'
    }
  }, {
    path: 'endApproval',
    icon: 'fa-user',
    component: _import('trust/endApproval/index'),
    name: '终审 - Beta',
    authority: 'endApproval',
    meta: {
      title: 'endApproval'
    }
  }, {
    path: 'orderQuery',
    icon: 'fa-user',
    component: _import('trust/orderQuery/index'),
    name: '订单查询',
    authority: 'orderQuery',
    meta: {
      title: 'orderQuery'
    }
  }, {
    path: 'approvalDispatch',
    icon: 'fa-user',
    component: _import('trust/approvalDispatch/index'),
    name: '信审派单',
    authority: 'approvalDispatch',
    meta: {
      title: 'approvalDispatch'
    }
  }]
}, {
  path: '/collection',
  component: Layout,
  name: '催收管理',
  icon: 'setting',
  authority: 'collection',
  meta: {
    title: 'collection'
  },
  children: [{
    path: 'processing',
    icon: 'fa-user',
    component: _import('collection/processing/index'),
    name: '催收业务处理',
    authority: 'processing',
    meta: {
      title: 'processing'
    }
  }, {
    path: 'grouping',
    icon: 'fa-user',
    component: _import('collection/grouping/index'),
    name: '催收分组管理',
    authority: 'grouping',
    meta: {
      title: 'grouping'
    }
  }, {
    path: 'externalUrge',
    icon: 'fa-user',
    component: _import('collection/externalUrge/index'),
    name: '外催管理',
    authority: 'externalUrge',
    meta: {
      title: 'externalUrge'
    }
  }, {
    path: 'dispatch',
    icon: 'fa-user',
    component: _import('collection/dispatch/index'),
    name: '催收查询',
    authority: 'dispatch',
    meta: {
      title: 'dispatch'
    }
  }, {
    path: 'newGroup',
    icon: 'fa-user',
    component: _import('collection/newGroup/index'),
    name: '编辑分组',
    authority: 'newGroup',
    meta: {
      title: 'newGroup'
    }
  }, {
    path: 'collDetail',
    icon: 'fa-user',
    component: _import('collection/collDetail/index'),
    name: '催收详情',
    authority: 'collDetail',
    meta: {
      title: 'collDetail'
    }
  }, {
    path: 'extDetail',
    icon: 'fa-user',
    component: _import('collection/extDetail/index'),
    name: '外催详情',
    authority: 'extDetail',
    meta: {
      title: 'extDetail'
    }
  }, {
    path: 'collDispatch',
    icon: 'fa-user',
    component: _import('collection/collDispatch/index'),
    name: '催收任务派单',
    authority: 'collDispatch',
    meta: {
      title: 'collDispatch'
    }
  }, {
    path: 'orderDivision',
    icon: 'fa-user',
    component: _import('collection/orderDivision/index'),
    name: '订单分账',
    authority: 'orderDivision',
    meta: {
      title: 'orderDivision'
    }
  }, {
    path: 'getCode',
    icon: 'fa-user',
    component: _import('collection/getCode/index'),
    name: '生成还款码',
    authority: 'getCode',
    meta: {
      title: 'getCode'
    }
  }]
}, {
  path: '/reduction',
  component: Layout,
  name: '减免管理',
  icon: 'setting',
  authority: 'reduction',
  meta: {
    title: 'reduction'
  },
  children: [{
    path: 'reduApply',
    icon: 'fa-user',
    component: _import('reduction/reduApply/index'),
    name: '减免申请',
    authority: 'reduApply',
    meta: {
      title: 'reduApply'
    }
  }, {
    path: 'reduAudit',
    icon: 'fa-user',
    component: _import('reduction/reduAudit/index'),
    name: '减免审核',
    authority: 'reduAudit',
    meta: {
      title: 'reduAudit'
    }
  }, {
    path: 'reduDetail',
    icon: 'fa-user',
    component: _import('reduction/reduDetail/index'),
    name: '减免详情',
    authority: 'reduDetail',
    meta: {
      title: 'reduDetail'
    }
  }, {
    path: 'auditDetail',
    icon: 'fa-user',
    component: _import('reduction/auditDetail/index'),
    name: '减免审核详情',
    authority: 'auditDetail',
    meta: {
      title: 'auditDetail'
    }
  }]
}, {
  path: '/baseManager',
  component: Layout,
  name: '系统管理',
  icon: 'setting',
  authority: 'baseManager',
  meta: {
    title: 'baseManager'
  },
  children: [{
    path: 'userManagement',
    icon: 'fa-user',
    component: _import('admin/userManagement/index'),
    name: '用户管理-改',
    authority: 'userManagement',
    meta: {
      title: 'userManagement'
    }
  }, {
    path: 'userGroupManager',
    icon: 'fa-user',
    component: _import('admin/userGroupManager/index'),
    name: '用户组管理',
    authority: 'userGroupManager',
    meta: {
      title: 'userGroupManager'
    }
  }, {
    path: 'roleManager',
    icon: 'fa-user',
    component: _import('admin/roleManager/index'),
    name: '角色管理',
    authority: 'roleManager',
    meta: {
      title: 'roleManager'
    }
  }, {
    path: 'menuManager',
    icon: 'category',
    component: _import('admin/menu/index'),
    name: '菜单管理',
    authority: 'menuManager',
    meta: {
      title: 'menuManager'
    }
  }, {
    path: 'dictManager',
    icon: 'fa-users',
    component: _import('admin/wordbook/index'),
    name: '数据字典管理',
    authority: 'dictManager',
    meta: {
      title: 'dictManager'
    }
  }, {
    path: 'departManager',
    icon: 'fa-users',
    component: _import('admin/department/index'),
    name: '组织机构管理',
    authority: 'departManager',
    meta: {
      title: 'departManager'
    }
  }, {
    path: 'attemper',
    icon: 'fa-user',
    component: _import('admin/attemper/index'),
    name: '调度管理',
    authority: 'attemper',
    meta: {
      title: 'attemper'
    }
  }, {
    path: 'ExportRecord',
    icon: 'fa-user',
    component: _import('admin/ExportRecord/index'),
    name: '导出记录',
    authority: 'ExportRecord',
    meta: {
      title: 'ExportRecord'
    }
  }]
}, {
  path: '/product',
  component: Layout,
  name: '产品管理',
  icon: 'setting',
  authority: 'product',
  meta: {
    title: 'product'
  },
  children: [{
    path: 'userGradeConfig',
    icon: 'fa-user',
    component: _import('product/userGradeConfig/index'),
    name: '用户等级配置',
    authority: 'userGradeConfig',
    meta: {
      title: 'userGradeConfig'
    }
  }, {
    path: 'productManager',
    icon: 'fa-user',
    component: _import('product/productManager/index'),
    name: '产品管理 - Beta',
    authority: 'productManager',
    meta: {
      title: 'productManager'
    }
  }]
}, {
  path: '/version',
  component: Layout,
  name: 'App管理',
  icon: 'setting',
  authority: 'version',
  meta: {
    title: 'version'
  },
  children: [{
    path: 'AppVersion',
    icon: 'fa-user',
    component: _import('version/AppVersion/index'),
    name: 'App管理',
    authority: 'AppVersion',
    meta: {
      title: 'AppVersion'
    }
  }, {
    path: 'DownloadPackage',
    icon: 'fa-user',
    component: _import('version/DownloadPackage/index'),
    name: '下载安装包',
    authority: 'DownloadPackage',
    meta: {
      title: 'DownloadPackage'
    }
  }]
}, {
  path: '/AuditReport',
  icon: 'fa-user',
  component: Layout,
  name: '审核报表',
  authority: 'AuditReport',
  meta: {
    title: 'AuditReport'
  },
  children: [{
      path: 'apprAchiCount',
      icon: 'fa-user',
      component: _import('AuditReport/apprAchiCount/index'),
      name: '审批业绩统计 - Beta',
      authority: 'apprAchiCount',
      meta: {
        title: 'apprAchiCount'
      }
    },
    {
      path: 'apprAchiCountDetails',
      icon: 'fa-user',
      component: _import('AuditReport/apprAchiCount/children/apprAchiCountDetails/index'),
      name: '订单详情',
      authority: 'apprAchiCountDetails',
      meta: {
        title: 'apprAchiCountDetails'
      }
    }, {
      path: 'ApprReport',
      icon: 'fa-user',
      component: _import('reportForm/ApprReport/index'),
      name: '初审报表',
      authority: 'ApprReport',
      meta: {
        title: 'ApprReport'
      }
    }, {
      path: 'EndApprReport',
      icon: 'fa-user',
      component: _import('reportForm/EndApprReport/index'),
      name: '终审报表',
      authority: 'EndApprReport',
      meta: {
        title: 'EndApprReport'
      }
    }, {
      path: 'EfficiencyAppr',
      icon: 'fa-user',
      component: _import('AuditReport/EfficiencyAppr/index'),
      name: '审批处理效率',
      authority: 'EfficiencyAppr',
      meta: {
        title: 'EfficiencyAppr'
      }
    }
  ]
}, {
  path: '/CollectionReport',
  icon: 'fa-user',
  component: Layout,
  name: '催收报表',
  authority: 'CollectionReport',
  meta: {
    title: 'CollectionReport'
  },
  children: [{
      path: 'CollStatisReport',
      icon: 'fa-user',
      component: _import('reportForm/CollReport/CollStatisReport/index'),
      name: '催收统计报表',
      authority: 'CollStatisReport',
      meta: {
        title: 'CollStatisReport'
      }
    },
    {
      path: 'achievement',
      icon: 'fa-user',
      component: _import('collection/achievement/index'),
      name: '催收业绩统计',
      authority: 'achievement',
      meta: {
        title: 'achievement'
      }
    },
    {
      path: 'collQueryDetail',
      icon: 'fa-user',
      component: _import('collection/collQueryDetail/index'),
      name: '催收查询详情',
      authority: 'collQueryDetail',
      meta: {
        title: 'collQueryDetail'
      }
    },
    {
      path: 'RushReport',
      icon: 'fa-user',
      component: _import('reportForm/RushReport/index'),
      name: '在催报表',
      authority: 'RushReport',
      meta: {
        title: 'RushReport'
      }
    }, {
      path: 'Reminders',
      icon: 'fa-user',
      component: _import('reportForm/Reminders/index'),
      name: '入催报表',
      authority: 'Reminders',
      meta: {
        title: 'Reminders'
      }
    },
  ]
}, {
  path: '/OperationReport',
  icon: 'fa-user',
  component: Layout,
  name: '运营报表',
  authority: 'OperationReport',
  meta: {
    title: 'OperationReport'
  },
  children: [{
    path: 'RenewalRateReport',
    icon: 'fa-user',
    component: _import('reportForm/RenewalRateReport/index'),
    name: '续贷转化率报表',
    authority: 'RenewalRateReport',
    meta: {
      title: 'RenewalRateReport'
    }
  }, {
    path: 'realTimeData',
    icon: 'fa-user',
    component: _import('synManager/realTimeData/index'),
    name: '运营实时报表',
    authority: 'realTimeData',
    meta: {
      title: 'realTimeData'
    }
  }, {
    path: 'DailyStatistics',
    icon: 'fa-user',
    component: _import('reportForm/DailyStatistics/index'),
    name: '每日统计',
    authority: 'DailyStatistics',
    meta: {
      title: 'DailyStatistics'
    }
  }, {
    path: 'TripartiteCallRecord',
    icon: 'fa-user',
    component: _import('reportForm/TripartiteCallRecord/index'),
    name: '三方调用记录',
    authority: 'TripartiteCallRecord',
    meta: {
      title: 'TripartiteCallRecord'
    }
  }, {
    path: 'loanDetails',
    icon: 'fa-user',
    component: _import('reportForm/loanDetails/index'),
    name: '贷款详情',
    authority: 'loanDetails',
    meta: {
      title: 'loanDetails'
    }
  }, {
    path: 'ExtendStatement',
    icon: 'fa-user',
    component: _import('reportForm/OperationReport/ExtendStatement/index'),
    name: '展期报表',
    authority: 'ExtendStatement',
    meta: {
      title: 'ExtendStatement'
    }
  }, {
    path: 'ProcessRefuseRate',
    icon: 'fa-user',
    component: _import('reportForm/OperationReport/ProcessRefuseRate/index'),
    name: '流程拒绝率报表',
    authority: 'ProcessRefuseRate',
    meta: {
      title: 'ProcessRefuseRate'
    }
  }]
}, {
  path: '/FinancialReport',
  icon: 'fa-user',
  component: Layout,
  name: '财务报表',
  authority: 'FinancialReport',
  meta: {
    title: 'FinancialReport'
  },
  children: [{
    path: 'FinanceReport',
    icon: 'fa-user',
    component: _import('reportForm/FinanceReport/index'),
    name: '财务报表',
    authority: 'FinanceReport',
    meta: {
      title: 'FinanceReport'
    }
  }, {
    path: 'LoanReport',
    icon: 'fa-user',
    component: _import('reportStatistics/LoanReport/index'),
    name: '放款报表',
    authority: 'LoanReport',
    meta: {
      title: 'LoanReport'
    }
  }, {
    path: 'FinanceAccountReport',
    icon: 'fa-user',
    component: _import('reportForm/FinancialReport/FinanceAccountReport/index'),
    name: '财务对账报表',
    authority: 'FinanceAccountReport',
    meta: {
      title: 'FinanceAccountReport'
    }
  }]
}, {
  path: '/WindControlreport',
  icon: 'fa-user',
  component: Layout,
  name: '风控报表',
  authority: 'WindControlreport',
  meta: {
    title: 'WindControlreport'
  },
  children: [{
    path: 'StatisticsList',
    icon: 'fa-user',
    component: _import('RiskManager/StatisticsList/index'),
    name: '北斗拒绝明细',
    authority: 'StatisticsList',
    meta: {
      title: 'StatisticsList'
    }
  },
  {
    path: 'OverdueStatement',
    icon: 'fa-user',
    component: _import('RiskManager/OverdueStatement/index'),
    name: '逾期报表',
    authority: 'OverdueStatement',
    meta: {
      title: 'OverdueStatement'
    }
  }, 
  {
    path: 'CustConversionTable',
    icon: 'fa-user',
    component: _import('RiskManager/CustConversionTable/index'),
    name: '客户量转化表',
    authority: 'CustConversionTable',
    meta: {
      title: 'CustConversionTable'
    }
  },
  {
    path: 'OverdueCustomerList',
    icon: 'fa-user',
    component: _import('RiskManager/OverdueCustomerList/index'),
    name: '逾期客户表',
    authority: 'OverdueCustomerList',
    meta: {
      title: 'OverdueCustomerList'
    }
  }, {
    path: 'overdueData',
    icon: 'fa-users',
    component: _import('RiskManager/overdueData/index'),
    name: '逾期率报表',
    authority: 'overdueData',
    meta: {
      title: 'overdueData'
    }
  }]
}, {
  path: '/CapitalReport',
  icon: 'fa-user',
  component: Layout,
  name: '资方报表',
  authority: 'CapitalReport',
  meta: {
    title: 'CapitalReport'
  },
  children: [{
    path: 'CapitalRecovery',
    icon: 'fa-user',
    component: _import('reportForm/CapitalReport/CapitalRecovery/index'),
    name: '资金回收报表',
    authority: 'CapitalRecovery',
    meta: {
      title: 'CapitalRecovery'
    }
  }, {
    path: 'm1addm3',
    icon: 'fa-user',
    component: _import('reportForm/CapitalReport/m1addm3/index'),
    name: 'M1~M3+报表',
    authority: 'm1addm3',
    meta: {
      title: 'm1addm3'
    }
  }, {
    path: 'DPDReport',
    icon: 'fa-user',
    component: _import('reportForm/CapitalReport/DPDReport/index'),
    name: 'DPD报表',
    authority: 'DPDReport',
    meta: {
      title: 'DPDReport'
    }
  }, {
    path: 'loanPlanReport',
    icon: 'fa-user',
    component: _import('reportForm/CapitalReport/loanPlanReport/index'),
    name: '放款计划报表',
    authority: 'loanPlanReport',
    meta: {
      title: 'loanPlanReport'
    }
  }, {
    path: 'inOutReminder',
    icon: 'fa-user',
    component: _import('reportForm/inOutReminderReport/index'),
    name: '入催出催报表',
    authority: 'inOutReminder',
    meta: {
      title: 'inOutReminder'
    }
  }]
}, {
  path: '/reportForm',
  component: Layout,
  name: '报表管理',
  icon: 'setting',
  authority: 'reportForm',
  meta: {
    title: 'reportForm'
  }
}, {
  path: '/synManager',
  component: Layout,
  name: '运营管理',
  icon: 'setting',
  authority: 'synManager',
  meta: {
    title: 'synManager'
  },
  children: [{
      path: 'payChannelManager',
      component: _import('synManager/payChannelManager/index'),
      name: '支付渠道管理',
      icon: 'setting',
      authority: 'payChannelManager',
      meta: {
        title: 'payChannelManager'
      }
    }, {
      path: 'lenders',
      icon: 'fa-user',
      component: _import('synManager/lenders/index'),
      name: '放款管理',
      authority: 'lenders',
      meta: {
        title: 'lenders'
      }
    }, {
      path: 'loanDetail',
      icon: 'fa-user',
      component: _import('synManager/loanDetail/index'),
      name: '放款详情',
      authority: 'loanDetail',
      meta: {
        title: 'loanDetail'
      }
    }, {
      path: 'orderBalance',
      icon: 'fa-user',
      component: _import('synManager/orderBalance/index'),
      name: '订单平账',
      authority: 'orderBalance',
      meta: {
        title: 'orderBalance'
      }
    }, {
      path: 'paymentHistory',
      icon: 'fa-user',
      component: _import('synManager/paymentHistory/index'),
      name: '支付记录',
      authority: 'paymentHistory',
      meta: {
        title: 'paymentHistory'
      }
    }, {
      path: 'appHelpCenter',
      icon: 'fa-users',
      component: _import('synManager/appHelpCenter/index'),
      name: '帮助中心',
      authority: 'appHelpCenter',
      meta: {
        title: 'appHelpCenter'
      }
    }, {
      path: 'MessagePush',
      icon: 'fa-users',
      component: _import('synManager/MessagePush/index'),
      name: '消息推送',
      authority: 'MessagePush',
      meta: {
        title: 'MessagePush'
      }
    }, {
      path: 'NoticeManager',
      icon: 'fa-users',
      component: _import('synManager/NoticeManager/index'),
      name: '公告管理',
      authority: 'NoticeManager',
      meta: {
        title: 'NoticeManager'
      }
    }
  ]
}, {
  path: '/channelManager',
  component: Layout,
  name: '渠道管理',
  icon: 'setting',
  authority: 'channelManager',
  meta: {
    title: 'channelManager'
  },
  children: [{
    path: 'ElectricChannel',
    icon: 'fa-user',
    component: _import('channelManager/ElectricChannel/index'),
    name: '电销渠道',
    authority: 'ElectricChannel',
    meta: {
      title: 'ElectricChannel'
    }
  }, {
    path: 'adChannel',
    icon: 'fa-user',
    component: _import('channelManager/adChannel/index'),
    name: '广告渠道',
    authority: 'adChannel',
    meta: {
      title: 'adChannel'
    }
  }]
}, {
  path: '/RiskManager',
  component: Layout,
  name: '风控管理',
  icon: 'setting',
  authority: 'RiskManager',
  meta: {
    title: 'RiskManager'
  },
  children: [{
    path: 'RuleManager',
    icon: 'fa-user',
    component: _import('RiskManager/RuleManager/index'),
    name: '风控规则配置',
    authority: 'RuleManager',
    meta: {
      title: 'RuleManager'
    }
  }, {
    path: 'ModelManager',
    icon: 'fa-user',
    component: _import('RiskManager/ModelManager/index'),
    name: '风控模型配置',
    authority: 'ModelManager',
    meta: {
      title: 'ModelManager'
    }
  }, {
    path: 'ModelDisplay',
    icon: 'fa-user',
    component: _import('RiskManager/ModelDisplay/index'),
    name: '风控模型展示',
    authority: 'ModelDisplay',
    meta: {
      title: 'ModelDisplay'
    }
  }]
}, {
  path: '/sms',
  component: Layout,
  name: '短信管理',
  icon: 'setting',
  authority: 'sms',
  meta: {
    title: 'sms'
  },
  children: [{
    path: 'templateConfig',
    icon: 'fa-user',
    component: _import('synManager/SMS/templateConfig/index'),
    name: '短信模板配置',
    authority: 'templateConfig',
    meta: {
      title: 'templateConfig'
    }
  }, {
    path: 'sendConfig',
    icon: 'fa-user',
    component: _import('synManager/SMS/sendConfig/index'),
    name: '短信群发配置',
    authority: 'sendConfig',
    meta: {
      title: 'sendConfig'
    }
  }, {
    path: 'SMSRecord',
    icon: 'fa-user',
    component: _import('synManager/SMS/SMSRecord/index'),
    name: '短信发送记录',
    authority: 'SMSRecord',
    meta: {
      title: 'SMSRecord'
    }
  }]
}, {
  path: '/customerService',
  component: Layout,
  name: '客服管理',
  icon: 'setting',
  authority: 'customerService',
  meta: {
    title: 'customerService'
  },
  children: [{
    path: 'sendOrder',
    icon: 'fa-user',
    component: _import('customerService/sendOrder/index'),
    name: '客服订单派单',
    authority: 'sendOrder',
    meta: {
      title: 'sendOrder'
    }
  }, {
    path: 'callRecord',
    icon: 'fa-user',
    component: _import('customerService/callRecord/index'),
    name: '客服拨打记录',
    authority: 'callRecord',
    meta: {
      title: 'callRecord'
    }
  }]
}, {
  path: '/electricManager',
  component: Layout,
  name: '电销管理',
  icon: 'setting',
  authority: 'electricManager',
  meta: {
    title: 'electricManager'
  },
  children: [{
    path: 'electricRecord',
    icon: 'fa-user',
    component: _import('electricManager/electricRecord/index'),
    name: '电销拨打记录',
    authority: 'electricRecord',
    meta: {
      title: 'electricRecord'
    }
  }, {
    path: 'elecAchievement',
    icon: 'fa-user',
    component: _import('electricManager/elecAchievement/index'),
    name: '电销业绩统计',
    authority: 'elecAchievement',
    meta: {
      title: 'elecAchievement'
    }
  }, {
    path: 'electricOrder',
    icon: 'fa-user',
    component: _import('electricManager/electricOrder/index'),
    name: '电销订单派单',
    authority: 'electricOrder',
    meta: {
      title: 'electricOrder'
    }
  }]
}];
